package fr.cephb.berkeleydb.dom;

import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;

public class Text
	extends AbstractDataNode
	{
	Text(long id,Document owner,String content)
		{
		super(id,owner,content);
		}
	
		
	@Override
	public int getNodeType()
		{
		return TEXT_NODE;
		}
	
	
	
	@Override
	public void write(XMLStreamWriter writer) throws XMLStreamException
		{
		writer.writeCharacters(getText());
		}
	
	@Override
	public String toString()
		{
		return "#text";
		}
	}
